export default [
    // 首页
    {
        name:"Home",
        path:"/home",
        // 路由懒加载
        component:()=>import("@/views/Home/Home")
    },
    // 搜索
    {
        name:"Search",
        path:"/search",
        component:()=>import("@/views/Search/Search")
    },
    // 搜索
    {
        name:"Cart",
        path:"/cart",
        component:()=>import("@/views/Cart/Cart")
    },
    // 分类
    {
        name:"Category",
        path:"/category",
        component:()=>import("@/views/Category/Category")
    },
    // 个人中心
    {
        name:"Personal",
        path:"/personal",
        component:()=>import("@/views/Personal/Personal")
    },
    // 值得买
    {
        name:"Worth",
        path:"/worth",
        component:()=>import("@/views/Worth/Worth")
    },
    // 注册
    {
        name:"Register",
        path:"/register",
        component:()=>import("@/views/Register/Register")
    },
    // 登录
    {
        name:"Login",
        path:"/login",
        component:()=>import("@/views/Login/Login")
    },
    //访问根路径，跳转到主页
	{
		path: '/',
		redirect: '/home'
	},
	// 访问的路径都没有的话,回到首页
	{   path: '*',
		redirect: '/home'
	}
]